<?php
class Application_Model_DbTable_AppSettings extends Zend_Db_Table_Abstract{
	protected $_name = 'app_settings';

	public function getPrixParPage(){
		$select = $this->select();
		return $select
		->from(array('n'=>$this->_name))
		->where('n.setting = ?',2)
		->query()
		->fetchObject()
		->value;
		
	}
	public function getPrixReliure(){
		$select = $this->select();
		return $select
		->from(array('n'=>$this->_name))
		->where('n.setting = ?',1)
		->query()
		->fetchObject()
		->value;
	}
}